<!-- BEGIN: main -->
<html>
     <head>
        {HEAD}
        <!--JS-->
        <script src="../../../{APP}/config/app.js" type="text/javascript" language="javascript"></script>
        <script src="js/validar.js" type="text/javascript"></script>
        <script src="js/submit.js" type="text/javascript"></script>
        <script src="js/reqs.js" type="text/javascript"></script>
        <script src="js/tabla.js" type="text/javascript"></script>
        
    </head>
    <body onload="inicio('{MENU}');">
        <div class="container">
            <div class="top">
                <div id="titulo" style="display: none"></div>
                <img src="../../../{APP}/img/principal/logo1.png" class="logo">
                <div id="encabezadoMenu">
                    Usuario:<b>{NOMBRE_APELLIDO}</b>&nbsp;
                    <br>
                    Último acceso:<b>{ULT}</b>
                    <a href="../../../FDSoil/modulos/admin_acceso/logout.php" style="color: #fff">Salir</a>
                </div>
            </div>
            <div class="left">
                <div id="menu"></div>
            </div>
            <div class="conten">
                <div class="divcenter">
                    <legend >
                        <img src="../../images/principal/actualizar.png">
                        <b>Actualizar Registro del Men&uacute; (Nivel 1)</b>
                    </legend>
                    <table class="table table-bordered" style="width: 50%; margin-left: 25%;">
                        <tr>
                            <th colspan=2>Seleccione el Nivel Antecesor</th>
                        </tr>
                        <tr>
                            <td>Menú (Nivel 0):</td>
                            <td>
                                <select id="id_nivel_0" 
                                        name="nivel_0" 
                                        class="input-large"
                                        onChange='sendTablaNivel_1(this.value); valInsert(this.value);'>
                                    <option value=null selected>Seleccione...</option>
                                    <!-- BEGIN: menu_0 -->
                                    <option value={ID_MENU_0}>{DES_MENU_0}</option>
                                    <!-- END: menu_0 -->
                                </select>   
                            </td>
                        </tr>
                    </table>
                    <div id="addReg" align="right">
                        <input id="id_img_add" type="image"
                               onclick="submitInsert(document.getElementById('id_nivel_0').value);" alt="Agregar" disabled>
                    </div>
                    <table id="tablaRows" class="table table-bordered" style="width: 80%; margin-left: 10%; clear: both;">
                        <thead>
                        <th>Orden</th>
                        <th>Opci&oacute;n</th>
                        <th>Ruta</th>
                        <th>Status</th>
                        <th>Acci&oacute;n(es)</th>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                    <div class='botonera'>
                        <button class="btn btn-danger btn-medium" id="id_salir" type="button" value="Salir" onClick="window.location.href = '../../../{APP}{RUTA}';">Salir</button>
                    </div>
                </div>
                </div>
            </div>
            <div class="footer">
                <div id="id_firma" class="bg-footer"></div>
            </div>
        </div>
    </body>
</html>
<!-- END: main -->
